/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package mx.gnp.ws;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import java.lang.*;
/**
 *
 * @author Matersys 86
 */
@WebService()
public class RecibeSolicitud {

    /**
     * Web service operation
        */
    @WebMethod(operationName = "tester")
    public String tester() {
        //TODO write your implementation code here:
        return "hola";
    }

    /**
     * Web service operation
     */
    @WebMethod(operationName = "solicitaProducto")
    public Integer solicitaProducto(@WebParam(name = "sku")    String sku) {

       int random = ((int) (Math.random()*20+1));
       System.out.println("solicitando respuesta del WebService");
       return random;


        
    }


}
